package com.company;

import java.util.concurrent.atomic.AtomicInteger;

public class BananaCounter extends Counter{
    private final AtomicInteger atcount = new AtomicInteger(0);
    public  int get(){
        return atcount.get();
    }
    public  void add(){
        atcount.addAndGet(1);
    }
    public  void dec(){
        atcount.decrementAndGet();
    }
}
